from docx import Document


def read_docx(file_path):
    doc = Document(file_path)
    content = ""
    print(doc.paragraphs)
    for paragraph in doc.paragraphs :
        content += paragraph.text + "\n"
        print(paragraph.text)

    for table in doc.tables:
        for row in table.rows:
            for cell in row.cells:
                content += cell.text + "\n"
                print(cell.text)
                
    return content



read_docx('/Users/pc-478/Desktop/private/compliance/legal_docs/illegal2.docx')
